package com.example.demo.mapper;

import com.example.demo.dto.EmployeeDTO;
import com.example.demo.entity.Employees;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author PRE_38965
 */
@Mapper
@Repository
public interface EmployeesMapper {
    public Integer updateEmployees(Employees employees) ;

    //查询
    public List<Employees> queryAll();

    //
    public int addEmployees(Employees employeesid);

    public int delEmployees(int id);

    public Employees queryAllById(Integer employeesid);

    Employees getEmployeeWithLeader(EmployeeDTO employeeDTO);
}
